import request from '@/utils/request'

export function queryByPage(data) {
  return request({
    url: '/medicalProjects/queryByPage',
    method: 'post',
    data
  })
}

export function insert(data) {
  return request({
    url: '/medicalProjects/insert',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/medicalProjects/update',
    method: 'post',
    data
  })
}

export function deleteById(params) {
  return request({
    url: '/medicalProjects/deleteById',
    method: 'get',
    params
  })
}
